#ifndef TABWIDGETFRAME_H
#define TABWIDGETFRAME_H

#include <QWidget>
#include <QTabWidget>
#include <QVBoxLayout>
#include "tabframe/mapinfo/AbstractMapInfo/abstractmapinfotab.h"
#include "dataspecification.h"
#include "spectrum.h"
class TabWidgetFrame : public QWidget
{
    Q_OBJECT
public:
    void setFixedSize(const QSize &size);
    void setFixedSize(const int& width,const int& height);
public:
    explicit TabWidgetFrame(QWidget *parent = nullptr);
private slots:
    void getCloseRequested(int value);

    void getBarClicked(int value);

    void getCurrChanged(int value);

    void getBarDoubleClicked(int value);
private:
    void InitTabWidget();
public:
    void setTabHeadChart(const DataSpecificationGW::SpectrumDataFileHead& dataFileHead);
    void setSpectrum(int no ,  DataSpecificationGW::Spectrum* spectrum);
private:
    QVBoxLayout* m_pLayout;
    AbstractMapInfoTab* abstractMapInfo;
    QTabWidget *m_tabWidget;
};

#endif // TABWIDGETFRAME_H
